<?


class DataVerifier_JCATBuildin_Length extends JCAT_Controller implements IToolboxDataVerifierController
{
	/**
	 * what's this
	 * 
	 * @access	public
	 * @param	$aParent=null	JCAT_IController		拥有此视图的对象
	 * @return	void
	 */
	public function DataVerifier_JCATBuildin_Length(IToolboxDataVerifierDoc $aDoc,JCAT_IController $aParent=null)
	{
		$this->JCAT_Controller(__CLASS__, $aParent) ;

		$this->AddDocument($aDoc) ;
		
		// 主视图
		$aSubView = new DataVerifier_JCATBuildin_LengthView($this) ;
		$this->AddView($aSubView) ;
		$aSubView->SetDocument($aDoc) ;
	}
	

	/**
	 * 
	 *
	 * @access	public
	 * @return	void
	 */
	public function MainRun()
	{
	}
	
	
	/**
	 * 取得选项视图
	 * 
	 * @access	public
	 * @return	GtkWidget
	 */
	public function GetOptionView()
	{
		return $this->GetView('DataVerifier_JCATBuildin_LengthView') ;
	}

	/**
	 * 创建文档
	 * 
	 * @access	public
	 * @return	IToolboxDataVerifierDoc
	 * @return	static
	 */
	static public function CreateDataVerifierDoc()
	{
		return new DataVerifier_JCATBuildin_LengthDoc() ;
	}
	
	
	/**
	 * what's this
	 * 
	 * @access	public
	 * @return	static
	 */
	static public function GetVerifierName()
	{ return JCAT_Language::Sentence('(JCAT) 输入长度校验') ; }
}
?>